package pers.cz.logtail;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import pers.cz.jefconfig.config.JefConfiguration;
import pers.cz.logtail.handle.LogHandle;
import pers.cz.netty.NettyServer;
import pers.cz.netty.config.ServerNettyConfigItem;

/**
 * @program: PostGirl-panent
 * @description: 服务端启动类
 * @author: Cheng Zhi
 * @create: 2022-10-05 12:20
 **/
public class ServerApplication {
    public static Logger logger = LoggerFactory.getLogger(ServerApplication.class);
    public static void main(String[] args) {

        LogHandle logHandle = new LogHandle();
        int prot = JefConfiguration.getInt(ServerNettyConfigItem.SERVER_PORT, 4567);
        logger.info("当前使用端口：" + prot);
        new NettyServer(prot).start(logHandle);
    }
}
